package juc.reentrantLock;
/**
 * @Description:
 * @Author: yangjie
 * @CreateDate: 2018/6/27 10:47
 */
public class Client {
    private static final long serialVersionUID = 7373984872572414699L;

    public static void main(String[] args) {
        System.out.println("开始");
        Depot mDepot = new Depot(100);
        Producer mPro = new Producer(mDepot);
        Customer mCus = new Customer(mDepot);
        mPro.produce(60);
        mPro.produce(120);
        mCus.consume(90);
        mCus.consume(150);
        mPro.produce(110);
    }


}
